package itheima.d04;

import java.util.Date;

public class Test {
    public static void main(String[] args) {
        Date d = new Date();
        System.out.println(d);
        Date d1 = new Date(1000L);
        Date d2 = new Date(0L);
        System.out.println(d1);
        System.out.println(d2);
        System.out.println(d.getTime());
        Date dated = new Date();
        //5分钟后的时间
        dated.setTime(dated.getTime()+5*60*1000);
        System.out.println("五分钟之后的时间："+dated);
        //30分钟后的时间
        dated.setTime(dated.getTime()+30*60*1000);
        System.out.println("三十分钟之后："+dated);
        System.out.println("毫秒值："+dated.getTime()+"\n");

    }
}
